//
//  SLPhotoBrowserManager.h
//  SLPhotoBrowser
//
//  Created by S_LINE on 2020/6/21.
//  Copyright © 2020 S_LINE. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "SLPhotoModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface SLPhotoBrowserManager : NSObject

+ (instancetype)defaultManager;

- (void)photoBrowserWithUrls:(NSArray *)imageUrls currentIndex:(NSUInteger)currentIndex;

/// 显示图片
/// @param images 图片模型数组
/// @param currentIndex 当前默认显示的图片的index
- (void)photoBrowserWithImages:(NSArray<SLPhotoModel *> *)images currentIndex:(NSUInteger)currentIndex;

/// 显示图片
/// @param images 图片模型数组
/// @param currentIndex 当前默认显示的图片的index
/// @param isRemoveable 是否可以删除
/// @param removeCallback 删除了某张照片后的回调
- (void)photoBrowserWithImages:(NSArray<SLPhotoModel *> *)images
                  currentIndex:(NSUInteger)currentIndex
                    removeable:(BOOL)isRemoveable
                removeCallback:(void(^ _Nullable)(NSInteger index))removeCallback;

@end

NS_ASSUME_NONNULL_END
